var btnEle = document.getElementsByClassName("btn")[0];
var usrEle = document.getElementById('loginUserName');
var pwdEle = document.getElementById('pwd');
var postRequest=function(data_dict){
    var form_1 = document.getElementsByName('loginUserName')[0];
    var form_2 = document.getElementsByName('pwd')[0];
    form_1.value = data_dict["loginUserName"];
    form_2.value = data_dict["pwd"];
    var btnE = document.getElementsByName("submitBtn")[0].click();
}
// console.log(btnEle);
btnEle.onclick = function () {
    var post_dict = {
        "loginUserName": usrEle.value,
        "pwd": pwdEle.value
    }
    // console.log(post_dict);
    usrEle.value = "";
    pwdEle.value = "";
    postRequest(post_dict);
}
